import request from '@/utils/request'

// 列表
export function listUserTags() {
  return request({
    url: '/wx/userTags/list',
    method: 'get'
  })
}
//修改或新增标签
export function saveUserTags(data) {
  return request({
    url: '/wx/userTags/save',
    method: 'post',
    data:data
  })
}

//修改或新增标签
export function delUserTags(tagid) {
  return request({
    url: '/wx/userTags/delete/' + tagid,
    method: 'post'
  })
}

//批量给用户打标签
export function batchTagging(data) {
  return request({
    url: '/wx/userTags/batchTagging',
    method: 'post',
    data:data
  })
}

//批量移除用户标签
export function batchUnTagging(data) {
  return request({
    url: '/wx/userTags/batchUnTagging',
    method: 'post',
    data:data
  })
}
